#ifndef __FINGERPRINT_H__
#define __FINGERPRINT_H__
#include "driver/gpio.h"
#include "driver/uart.h"
#include <stdint.h>

#define FINGERPRINT_UART_NUM UART_NUM_1
#define UART_TX_PIN 21
#define UART_RX_PIN 20
#define BUF_SIZE 1024
#define FINGERPRINT_TOUCH_INT 10


void Fingerprint_Init(void);
void Fingerprint_GetSerialNumber(void);
uint8_t Fingerprint_GetTemplatesCount(void);
void Fingerprint_Sleep(void);
void Fingerprint_Cancel(void);
uint8_t Fingerprint_GetImage(void);
uint8_t Fringerprint_GenChar(uint8_t BufferId);
uint8_t Fringerprint_RegisterTemplate(void);
uint8_t Fingerprint_StoreTemplate(uint16_t PageID);
// 设置安全等级
// 写系统寄存器
uint8_t Fingerprint_SetSecurityLevel(uint8_t level);
uint8_t Fingerprint_Enroll(uint16_t PageId); // 指纹注册
uint8_t Fingerprint_Identify(void);




#endif